<%--
  Created by IntelliJ IDEA.
  User: 86178
  Date: 2023/7/12
  Time: 14:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>表单</title>
    <link rel="stylesheet" href="css/Common.css">
    <link rel="stylesheet" href="css/Form.css">
</head>
<body>
<div class="allform_body">
    <form action="FormUpdate" processorTest.method="post" id="mainFormUp">
        <div class="top">
            <h1>新增
                <input class="selectBtn" type="button" value="返回客户查询" onclick="window.location.href='select.jsp'">
                <button class="submitb" type="button" onclick="submitForm()">提交表单</button>
            </h1>
            <%--        <input class="submitb" type="button" value="提交表单" onclick="submitForm()">--%>
        </div>

        <div class="mainForm">
    <span class="mainFormInput">
         <label><span style="color:red">*</span>客户姓名:<input class="mainFormText" type="text" id="custname"
                                                                name="custname"
                                                                placeholder="请选择客户姓名"
                                                                value="${formMessage.object.name}"></label>
    </span>
            <span class="mainFormInput">
        <label><span style="color:red">*</span>单位性质:<input class="mainFormText" type="text" id="unit" name="unit"
                                                               placeholder="请选择单位性质"
                                                               value="${formMessage.object.unit}"></label>
    </span>
            <span class="mainFormInput">
        <label><span style="color:red">*</span>行业分类:<input class="mainFormText" type="text" id="classify"
                                                               name="classify"
                                                               placeholder="请选择行业分类"
                                                               value="${formMessage.object.classify}"></label>
    </span>
            <span class="mainFormInput">
         <label><span style="color:red">*</span>客户来源:<input class="mainFormText" type="text" id="source"
                                                                name="source"
                                                                placeholder="请输入客户来源"
                                                                value="${formMessage.object.source}"></label>
    </span>
            <span class="mainFormInput">
         <label><span style="color:red">*</span>联系地址:<input class="mainFormText" type="text" id="cus_address"
                                                                name="cus_address"
                                                                placeholder="请输入联系地址"
                                                                value="${formMessage.object.cus_address}"></label>
    </span>
            <span class="mainFormInput">
        <label><span style="color:red">*</span>是否服务:
<%--            <input class="mainFormText" list="optionList" id="serve" name="serve" placeholder="请选择是否服务" value="${formMessage.object.serve}">--%>
        <select class="mainFormText" id="serve" name="serve" >
            <option  class="selectOption" value="是">是</option>
            <option class="selectOption" value="否">否</option>
        </select>
        </label>
    </span>
            <span class="mainFormInput">
        <label>服务类型:<input class="mainFormText"  type="text" placeholder="请选择服务类型" id="servetype"
                               name="servetype" value="${formMessage.object.servetype}">
        </label>
    </span>
            <span class="mainFormInput">
         <label><span style="color:red">*</span>客户地址:<input class="mainFormText" type="text" id="address"
                                                                name="address"
                                                                placeholder="请选择省市区"
                                                                value="${formMessage.object.address}"></label>
    </span>
            <span class="mainFormInput">
         <label><span style="color:red">*</span>客户等级:<input class="mainFormText" type="text" id="level" name="level"
                                                                placeholder="请选择客户等级"
                                                                value="${formMessage.object.level}"></label>
    </span>
            <span class="mainFormInput">
        <label>行政区划代码:<input class="mainFormText" type="text" placeholder="根据客户地址给出" id="division_code"
                                   name="division_code" value="${formMessage.object.division_code}"></label>
    </span>
            <span class="mainFormInput">
        <label>邮政编码:<input class="mainFormText" type="text" placeholder="请输入邮政编码" id="zip_code"
                               name="zip_code" value="${formMessage.object.zip_code}"></label>
    </span>
            <span class="mainFormInput">
        <label>客户简称:<input class="mainFormText" type="text" placeholder="请输入客户简称" id="short" name="short"
                               value="${formMessage.object.shortname}"></label>
    </span>
            <span class="mainFormInput">
        <label>法人:<input class="mainFormText" type="text" placeholder="请输入法人" id="j_person" name="j_person"
                           value="${formMessage.object.j_person}"></label>
    </span>
            <span class="mainFormInput">
        <label>组织机构代码:<input class="mainFormText" type="text" placeholder="请输入组织机构代码" id="organization"
                                   name="organization" value="${formMessage.object.organization}"></label>
    </span>
            <span class="mainFormInput">
        <label>官网:<input class="mainFormText" type="text" placeholder="请输入官网" id="web" name="web"
                           value="${formMessage.object.web}"></label>
    </span>
            <span class="mainFormInput">
        <label>活动状态:<input class="mainFormText" type="text" placeholder="请输入活动状态" id="status" name="status"
                               value="${formMessage.object.status}"></label>
    </span>

            <span class="mainFormInput">
        <label>办公电话:<input class="mainFormText" type="text" placeholder="请输入办公电话" id="phone" name="phone"
                               value="${formMessage.object.phone}"></label>
    </span>
        </div>

        <div class="secondForm">
            <div class="selectFormTop">
                <span class="selectForm" id="selectTable" onclick="customerChoice(this)">客户联系人</span>
                <span class="selectForm" id="selectTable" onclick="bankNumChoice(this)">银行账号</span>
                <span class="selectForm" id="selectTable" onclick="competitorChoice(this)">竞争对手</span>
                <%--            <hr>--%>
            </div>

            <div>
                <input class="formAdd" type="button" value="+ 新增" onclick="addLine()">
            </div>
            <div class="showedForm">
                <table class="table" id="firsttable">
                    <tr id="tr">
                        <td><input class="selected" type="checkbox"></td>
                        <td>#</td>
                        <td>编辑</td>
                        <td><span style="color:red">*</span>姓名</td>
                        <td><span style="color:red">*</span>部门</td>
                        <td><span style="color:red">*</span>职位</td>
                        <td><span style="color:red">*</span>手机号码</td>
                        <td><span style="color:red">*</span>对口人员</td>
                        <td><span style="color:red">*</span>最近沟通时间</td>
                        <td>微信号</td>
                        <td>QQ号</td>
                    </tr>
                    <tr>
                        <td><input class="selected" type="checkbox" id="selected"></td>
                        <td><span id="number">#</span></td>
                        <td><input class="changeButton" id="change" type="button" value="编辑"></td>
                        <td><input class="showText second_name" type="text" id="second_name" placeholder="请输入姓名"
                                   value=""></td>
                        <td><input class="showText second_department" type="text" id="second_department"
                                   placeholder="请输入部门" value=""></td>
                        <td><input class="showText second_position" type="text" id="second_position"
                                   placeholder="请输入职位" value=""></td>
                        <td><input class="showText second_phone" type="text" id="second_phone"
                                   placeholder="请输入手机号码" value=""></td>
                        <td><input class="showText second_personel" type="text" id="second_personel"
                                   placeholder="请先选择对口人员" value=""></td>
                        <td><input class="showText recent_time" type="date" id="recent_time"
                                   placeholder="请输入最近沟通时间" value=""></td>
                        <td><input class="showText" type="text" id="wechat" placeholder="请输入微信号" value=""></td>
                        <td><input class="showText" type="text" id="qq" placeholder="请输入QQ号" value=""></td>
                        <td><input class="deleteButton" type="button" id="deletebutton" value="删除" id="deletebutton"
                                   onclick="deleteLine(this)"></td>
                    </tr>
                </table>

            </div>
        </div>
    </form>
</div>
<script src="js/Form.js"></script>
<script type="text/javascript" src="js/jquery-3.4.1.js"></script>
</body>
</html>
